<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* span {
      display: inline-block;
       width: 100px;
       border: 1px solid pink;
       margin: 3px 3px;
       border-radius: 2px; */
       /* 盒子阴影 */
       /* box-shadow: 2px 2px 2px rgba(255, 192, 203, .4);
       background-color: rgba(255, 192, 203, .2);
       text-align: center;
    } */

    span {
      display: inline-block;
      width: 80px;
      height: 20px;
      border: 1px solid #000;
      background-color: pink;
      margin: 3px;
      text-align: center;
    }
     
     


  </style>
</head>
<body>
<!-- 
  <script>
    for(let i=1;i<=9;i++){
      for(let j=1;j<=i;j++){
        document.write( `<span>${i} x ${j} = ${i*j}</span>`)
      }
      document.write(`<br>`)
    } -->
  <!-- </script> -->

   <!-- 外层for 打印层数   内层for 打印列数
      列数跟行数队对应 -->

    <script>
      for(let i =1;i<=9;i++){
        for(let j=1;j<=i;j++){
          document.write(`<span>${j} x ${i}=${i*j}</span>`)
        }
        document.write(`<br>`)
      }
    </script>

</body>
</html>